modified registry class