master auto generation