fix compile error on this branch too
Make the default recovery function a val