removed compile errors in mkdir