run generator automatically