feat(inflate): pass global to customize function. closes #22