coreselect implemented and corestats debugged