improve qk_fail formatting.
reduce imports.