allow functions in deferMethod and deleyMethod