Initial work on import replace getpath modeline etc.