replace $0 with script name