replace sys/queue with cork_dllist