split out run control into separate file