trying posix threads