added new internal authenticate instruction code