fix get_last_arm_step, added some logging