updating the gem supervisor code