implement mc_blue_dfs