refactor logged runs