added missing promise resolution