fixed SO error
login auth implemented
dist add func