edits from original huawei.rc and from fredvj