cleaned up and simplified script, deleted complex example