main dir cleanup