workaround for Redis build issues - needs refactoring