v2 working- arming and disarming added