cleaned up directory creation