example added, capture functions, modified to not create new files