adding resetdb among other things