add hooks for modifying localrc for xenapi