console application fix, improvements in memory allocator