battling with vc compiler quirks