updated register lib