Shadow: very crude csm support