added special method to Handler class for decorating functions