add multi-user

fix other bugs