added master and slave structure for initial setup