cleanup of core directory