core directory cleanup