cleanup bus type logic