minor fixes and changes to permalink