fix single-file input