ruby script for testing