adapted to work on mac, lein and auto-complete