improve transfileinout