added getunacked and length getters