changed host and scheme to use ROOT_URL instead