sync up on connection
Merge pull request #10 from ofhippo/master

sync up on connection