FIX: pid reference in connectToService