a selection of potentially useful functions for net use in vala