2 WAN's and queue tree

Hello.
I have a problem setting routes and priorities.
We have 2 WAN interfaces.
I can’t configure marking connections and routes from WAN and marking connections for queue tree.
We have routeros v6.4

When routing marks are working queue’s are not working. And when queues are working, only impot from “default” WAN is working.

Part of the issue may be that you’re editing items in the GUI. I’ve found that I must delete all rules in the GUI, then I re-add them (along with changes) via pasting the script into a terminal.

I will try that, but I’m not certain that my routing marking is made the way it schould be.

incoming connections marking in input and prerouting
mark-routing in output

queues connections and packet marking in forward

I tried configuring from “terminal” from winbox and by ssh and telnet. Results the same as before.