fixed experiment server code so that experiments can be run as services