refactor streamUrl for Daemon