resizing scripting

minor fixes