server now creates files and writes to them when a client connects