dock detector work