new version of main, also landmarks parsing