simplified some of cd and mkdir