solve library ref problem