door and doorway behavior