A smart package for validation