ret values need to be copied out