new mkdir function and deployread