add fig.yml and use it