make sure current ast resets to toplevel command after running