cleanup docdata status update code