fixed library errors