change name to previousUser
add previousUser support