prevent currentUser from global scope