apparently cd is stateful