move codes to setup_emulator.sh