adding debug feature to overlay PSDs