added wire remover code and turned fk_id column into lpid/gid column