better error handling in bin; turn on http server by default