added functionality to scan for user