switch to shared lib