added the ability to pass in the options