adding planck foreground handling