added registry functionality to all classes