work on permalink compatibility

issue #45