fixed severe bug with writing to tun dev proc flow misplacement