implements resmsg.rb reading aaa.rb