lock library construction