changing the api for options