loader: cleanup