allow overriding "extend" on classes