fixed library problems