working client code and media files