modify stdin for test
modify run script