txt protection, and misc, changes