working on concurrency model
memory handling