new code for fx setup