compat for old permalinks