recieve last message id or load from file