add methods to spec