more work on detectDocks