have you tried turning off your router err i mean plugin and turning it on again?
– majickMar 23 '16 at 8:07

yes...i found a workaround..I think maybe something is wrong with my wordpress install because someone on stack tried my code and it worked on their install. I'll post my workaround as an answer
– ewizardMar 23 '16 at 14:23