modify to disuse WAQL-COMPILE-ERROR and to handle errors as they are, because stack traces were hidden by WAQL-COMPILE-ERROR
modify to optimize performance