support multithreading also for int, float and string