set the default r_mode to -2 and remove the second mode detection from glimp ,refs #570