changes to allow headless and to run on new server