adding fetch and reset to the script