changed existing code to implement the concept of users and projects (still experimental)