add support for pretty permalinks