many many fixes after extensive testing
unit tests for updateinfo