setup template system
big changes