renamed main to core