work on porting code from KBA 2012 to 2013