adjusted php frontend to use global config file.