add username setting fix #2 fix #3