added support for required int fields