fixed library issues