added stuff to read template json-files from filesystem