fixed auth_machine, used different syntaxes to do same thing