copy of karma plus myhack for https