cleanup main directory