improve compression of action table
improve error message