adjusted the subscribe function to work around an issue with node redis