setting up the core