set library path
check for cache