implement cd, still need to integrate it with other commands