fixes to the signing process