added registerLib