HF - updated format detection