various htc-one bug fixes and optimizations