implemented complete playout algorithm with invalidation. test suggest good results