add method to check if message server is started