code changed to work with express; everything is now on port 8000