updated extension methods and to the latest NLog 3.1