modified to use static build