whoops, need to rewrite permleft/permleftfn, but no time right now