bunch of fixes emmett pointed out.
fixing locking bug, all user message signatures written out.