stub in case no window object present