utility functions for qslink calculations