exported to .net 4.0 and made compatible with VS2010