trying to fix race condition in arm_controller