return a function for options so they can be changed on the fly