added getopt to allow use of scripts or styles