working on a modified loader to better control error messages
and avoid some redundant processing, and simplify the interface