bug fixed: session preserve through different script calls