fix BuySellStocks, better class a detection in commands