implement route wrapper and clean up Apic module