only ls if cd is successful