added UID retrieval; on by default