creating directories should now be possible
separate methods for directories
fixing build issues