group blocks by privacy, add a master template