adding fd method to BufferedEvent class