update inflector function
update loader class, and add loader test