checks for .dom file