fixes directory creation