fix for api chain