add auto-source functionality, ignore swap files