Loading phantom + close util functions