add flags to scripts