add debug option to build script