add debug and script