added forwarding mode and turning off forwarding mode