added onload profiling