binary reading working. todo: store variables