modify to refactor loading WAQL file, making called in repl server only