debugging and script updates