add mkdir and open methods