adding modman modification for extra error checking