move is_upgrade internals into bindings.rs
really really inline those