added binary handling and views