add auto option to script