factoring out the PersistitJob class
fixing io array handling