testing
add debug boolean