new checksig code done. untested