adding mango log processing code