adding an option and a handler for get method publishing