add logging
make server switch better
mongo experiment