Bugfixes and pathcorrections to get backend to run.