groundwork for some scripting stuff