door_open: added debug option