permalinks, other small fixups