add fig support