1. add logging to server