added error state, began work to collect emails