check the existance of Main