added new entity detection based on redis