server now takes commands in a loop, can serve multiple files per session