refactor calls to Quantum API
add --remove-dead. remove dead agents after rescheduling