more or less finished semantic actions and started toplevelvisitor