added automatic user detection (for my own personal public/private settings)