change permlink handling