improve is_target_format to check against supported target formats