updated sonic lib