simplify check_target in sesman