better detection and parsing for multisig inputs.