unfinished version of core lib