gah, i ran into this same one a while ago. there's not a better way to write this bit?