added library related call  inside init_library