add AcceptFunc and AcceptRunFunc methods
godoc