Added option to enable/disable profiler through url
minor fixes