better error handling
Merge https://github.com/sisomm/iot-concepts