add exec-local and exec-remote function to installation script