more flexible asm copy
added conditional for shell output printing