issue #55: adding xhr functionality to controllers
when exporting, make sure dirname matches release to avoid accidental
overwrites