move random scripting methods to separate file