the script works now, made all options...well...optional.