update upstream check method