cleaner and smarter code on creation basic dirs