fixed initial issues to get httparty working