fixes to get signing to work (WIP)