clean and prep for ruby