trying to add some error handling to debug why it's always disconnecting. this really shouldn't be in master... but I guess at 0.0.1 its ok