bunch of mods, took threaded mode off to avoid freezing