[server] reduce dependencies
[server] make output location configurable