add 'add' method on RestHandler