changed the way file table building. From now templating used.