paper-bag fix for scala support