pie and ime fixes