script for LAG support for JVAE.