add Core.getState