pass baseUrl as option