initial script version, some usage notes