updating to new consulapi library