added support for members inside internal classes