re-added automagic login function to makefile