map suffix and add file input