ruby clean up mostly