fixing an issue spawned from recent packaging changes (error handling)