tidy up ahead of asynch call