middleware: update mech for annoymous user
middleware: update mech for annoymous user