ability to mark items as sold, plus bugfixes