moved main contents to core
moved main contents to core