update to be a static lib