added deprecated for binary writer class