update castle adapter