Started to rewrite as a true node app. DONTBUILD this one, it doesn't work