refactor #repack_app_in

+ remove unused variable in object serialization