sentence: before extensive use of container ships and shore-based handling machinery in the united states , longshoremen referred exclusively to the dockworkers , while stevedores , in a separate trade union , worked on the ships , operating ship 's crane and moving cargo .