added htc legacy common files