added loading message within script