change to die if error is present, since now we only activate providers, which are in use
Add tests