added memory profiler and fixed param print