add in a sleep to see what goes on with the templates