bug with check_cmd. disabled it for now