altered demo to work with apache