use method caller for static functions