makefile and authentication fixes