added rig var and watch function to shell environment