changed exception output to var_dump