moving stuff around into a reuable template