refactoring of conred module