refactor bash setup