stqueue/dtqueue improvements