some basic scripting stuff (not working yet, copy issues)