Note that most routines in the above libgp2x unit are already present in the baseunix unit and you are doing double work.