use GThread for library refresh proc