got fail recovery working and debugged