further fixes for session and client's ip transmission