clean up warnings, new feature to specify custom validation class