improvements for reset and deleting files