fixes several various market issues