added karma as a global