loadResource

done with errors.  the loadResource need a template<>syntax ... what
ever that means