collect the lib resource