beginning rework of permalink