added handler to last activity, changed myscripts