WIP: new sage integration implementation