small update to prepare error logging