add options method to API