fixing directory creation on start up