Lib for model and kernel handling