filename communicated from server to client. other tidyup. should now be useful