better assert messages to help track down the issues