improve fig config