simplify error finding and help displaying functions
fix