added gen_yaml.py for online command