changed the API to only accept the options parameter