added the option to change the value formatter and the spec loader