added a reset func to ipcast