new run.sh file and bugfix in main.py