fixing get_core reference