added simple message authentication