that's what I did, but what I actually missed here is making it a decorator.