init with the core code

see src