improve ami message validation before parsing