bugfix in initialization & authentication process
fix initialization and authentication steps