fix handlers to rehash plenv