make backends script more robust, enable logging