fixed multiple users and debug output