added getService and getFunction