original main script