model update. 1. support resume 2. fixed std calculation bug