added some fixes to signMessage but not done yet