implement kinda bad cd and pwd