setting up master