lib for core