bugfixes to setup system
now handles cabal