might be nice to put an assert before this line that ensures you got everything