#136 memory tuning and dependecy fixes for kernel