a few work arounds for error case