update optimizer and pycharts