reworked permalink feature