generate master for client