another shot at making permalinks work