sketch of main script (#1)