separate LieDetector code from Google libraries