based on Zero Kernel(github.com/dp221125)