cleaning up src_prepare