split process callbacks out into separate module to make testing a bit easier