updating scripts and reverting handler code