add options in initializer for api endpoint
set url