change the behavior when more than one files are passed. fix #1