adding package validation code