integrating pedros changes in mkdir and create