enahnced file_utils spec for key generation