splitting up the runner code