p2: support BEGIN blocks