some work on warehouse stuff--sorting is _working_, but I would like it
to be much more efficient