add server running in sperate thread
add server running in sperate thread