allow hammerOptions to be specified as the result of a function