fix lint, mark pos of all refs