getting memcpy to work in bsim