TODO : get file on setoption