implements spHandler