started working on thread safe context
thread-static context