updated to be a static lib