downgrade castle.core to work with ppm