added types for append-queue and fixed hte behavior
fixed types