convert to use BeserkCore