replace hard-coded urls with bef.options("tematres_service_url"). issue #18