resolved build failures in wait_for_complete and set_direction