simplify SafeBuffer