changed API (adapted for core visualization)