updated ruby scripts to sync stdout