added initial coding for castbars