add time-profiling
working on session