add script to auto plot && partial fix h