added general methods and profiler
added general methods