fix service.adapter factory