adverb
in a rudimentary or makeshift way.
the crudely stitched flag
"Painted the wrong way"
"Transform"