initial commit, script not yet tested