1. modify local test script
2. code improvement