compatibility fixes.