cleanup and profile cleanup