update timeout 10s and update file code