moved apply_latest so it doesn't hurt the client lib