clean up
switch to synchronous
loading queries