removed types.MethodType, as it is dumb