template for fta client and server