switch to check_call