add server logger and many feature patches