added error for debugging bad configuration