emulate block classes