move parsing to format_entry