compiling with simple test, needs thourghout testing in multithreaded env