fixed issue with classloader (checks namespace first), added method for
setting template root path