splitting core lib file into dedicated folder