main "docking" loop