make directories work