loader clean up