fixed log parsing