added debugging flags