deployments collection now manually listens for updates from environments collection
tries to clean up logic with promise from fetch