same code fusion for standalone and yarn modes & command line for yarn