added authentication nifty generation