unify copy_remainder and copy_up_to, create copy_up_to_end_of
dont add debian build flags for debug builds
adding rudimentary insertion of ICE attributes