refactor code to use gnuob-api