avoid stacktrace by catching errors. Issue #195
quote IDs in searches. Issue #195