restructure error helper in FT