add debug flag to biuld