make session and fd as public