update tptmp and script manager