support configurable logfile, restored vm query assert == 1, removed debug statement