add flag to debug