made it easier to unit test