modified real detect, now it could detect a room or trace a client