added multiuser functionality