first commit of fully working multisig functionality