better error messages and fix front-end ROI bug