upload lib fixes