add file as optional input