setup with template