add logger and env port