added reset and export