fixed result handling in deployment