improve automated test and upload script