sync befaore snapshot
sleep not needed ?