first working impl of ribbons