refactor flythrough data script