base code for a runner