removed old singleton  functions and started the implementation of the
datacollectorthread