adding in kwapply things.