record model
handling async error in indexall