implemented proper thread creation and distribution. thread receive under development