exclude local test code, fix ua string