main script file