class methods instead of normal functions in extensions