fix unique validator
fix file key generator