ugh. did not handle error states correctly.
gah
did not handle errors tates correctly.