removed asserts and waits for next ref to be posted