castle init