checks on strings should be === probably (as in other places)