updating to allow passing in an object with helper functions