refactored runData into run and init files. separated out logic for mock data