minor things for dealing with crappy code