trying to handle messages