tidying up some code
made a start on the 'asset recovery' function