run in foreground