Affiliate offers and separate connections

good catch, fixed rubymine settings and formate code.