more work on gaol capturing