major refactoring - refCircle and refLine are now part of localisation