making directories is now a function to be called on at will