added a way to add default methods.