porting to NETFX_CORE :(