ruby gem utility methods