renamed options to withOptions