initialise master