added local and remote queue implementations