implementing queued commands