to work around charging adapter build problems