added support for nib