refactoring Object add USer and logger