avoid unnecessary directory creation