added more scripting stuff