update to handle paths for multiple domains