tackle some runtime exceptions