downgraded castle to v 3.0.0.4001