ugly workaround for ugly validator