moved main methods out of classes, moved call profiler to utils