script principal