some fixes and setCoins added