more changes to make karma work