add service_id as a configuration attribute, and fix purge