ruby script for atm_dump