add support for ground truth data, various small changes