saving and replaying actions over server