changed the dice API and further commenting