added functions to retrieve a configfile from a service and package