v0.5.0: simplify by removing endpoint-specific before/after filters and make common to all endpoints