adding username to log file
factory pattern draft