server now starts(by itself)  and operates in a new thread