added simpler cque.c