flat wait mod and check_target in sesman