refactored network utilities using rest templates