simple copy-paste-adapt (should make a generic script).