added chmod after mkdir