code revised for user/project management.