changed output behaviour of reference and spark executor.