added more functionality to cataloge and few more subroutine