Melt chocolate and 1/2 cup butter and set aside to cool.
To make the cream cheese batter, with a whip attachment cream 6 tablespoons butter than add the cream cheese and continue mixing. Add the sugar, beat until fluffy then beat in the eggs, then flour, and vanilla. Set aside.
For the chocolate batter, in a separate bowl whip the eggs and sugar until fluffy. Stir together the flour, baking powder, salt, and mix into egg mixture. Mix in the melted chocolate and butter, and the extracts.
In a rectangular pan, lined with parchment, spread half the chocolate mixture. Spread the cream cheese layer over that to cover, then drop remaining chocolate batter by spoonfuls on top then swirl with a knife. Bake for 40 minutes. Cool and cut into bars.