improved log in server mode