improve multi file input