updated for latest karma