more (unfinished) data preprocessing with scala