changed repo to original
fixed some bugs
fixed bugg in query explain
some cleanup