toggling resources on and off- maybe refactor using an event source approach at a later date.