fixes for the debug use add