fixed time out length, added httparty, refactored