code updatee, added basedomain, referee