koios_before and koios_after support