removed the server part, put the actors creation in a thread