refactor karma settings