refactored messaging and authentication
refactored messaging and authentication
refactored messaging and authentication