moved verification to upper package