update to run both locally and on web server