complex rewrite to use with deltaphp, add interface and trait, test route