modification to loadtune.c