changed Environment.CurrentDirectory to AppDomain.CurrentDomain.BaseDirectory