add directory checking on create command