removed some debug lines, bypass localhost