moved class from reflection to try working from a file so as avoid having to have a running class, this should allow template variables e.g. {model}