patch pub enough to be valid in this library