workaround line buffer issue in node version <= 0.10