adapted karma to mac os