modify auto start function