fixing message read
removing unused imports