added better handling to profile results logging