select only directories + clean up