added door flag