add utilService and refactored util copy function