adding protection from overwritting on install and fixing up empty criteria spec