rework nth parsing and pseudo-func translation