taken from https://github.com/apmasell/vapis
and tested on https://gitlab.gnome.org/albfan/ssh-vala-examples