fix node 0.8 issue and authAttrs issue in Mechanism