add debug options to build script