adds grab master code