added record processor flow control