added a report flag and changed the way folders are created