add initcode and new run.sh