updated secret handler to have a function