minor fixes to make resharper happy