more restructuring of locks, added trylocks, it compiles. still not much on packet, tho.