started porting spells data structures