fix bad service definition and dupe constant