bug fixes for mockTrader