pre submit cleanup