avoid embarassing crashes