added stuff for getting and setting quantities on distributables