fixed 'object has no attribute by_source/by_cabal' issues