implementing log parsing