added autoflush to stdout in pmDriver