yeah, we're using this in quite a few places, having a centralized function for that would be nice