updated permalink generation