loading scripts with stack