improved runtime errors