refactoring to allow same user in one machine