adding the diff module, and modification the ret services