add named methods on prototype declarations