support for regions inside internal classes