preparing for check_command