reworked scripting console, bug fixes