added argument parsing for cd