fix an import loop in services