reformatting
added a generic service function to the script runner