adding fig support