better initialisation connection error handling
better initialisation connection error handling