updated to latest dart

also fixed error handling of http requests